package com.example.foobar.dao.service;

import com.example.foobar.entity.DidiCompany;
import com.example.foobar.param.DidiCompanyPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

/**
 * 公司 服务类
 *
 * @author 郑英奔
 * @since 2021-11-16
 */
public interface DidiCompanyDaoService extends BaseService<DidiCompany> {

    /**
     * 保存
     *
     * @param didiCompany
     * @return
     * @throws Exception
     */
    boolean saveDidiCompany(DidiCompany didiCompany) throws Exception;

    /**
     * 修改
     *
     * @param didiCompany
     * @return
     * @throws Exception
     */
    boolean updateDidiCompany(DidiCompany didiCompany) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteDidiCompany(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param didiCompanyQueryParam
     * @return
     * @throws Exception
     */
    Paging<DidiCompany> getDidiCompanyPageList(DidiCompanyPageParam didiCompanyPageParam) throws Exception;

}
